package com.game.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.game.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.game.business.mapper.TUserSfsqMapper;
import com.game.business.domain.TUserSfsq;
import com.game.business.service.ITUserSfsqService;

/**
 * 身份审核Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-11
 */
@Service
public class TUserSfsqServiceImpl extends ServiceImpl<TUserSfsqMapper,TUserSfsq>  implements ITUserSfsqService
{
    @Autowired
    private TUserSfsqMapper tUserSfsqMapper;

    /**
     * 查询身份审核
     *
     * @param id 身份审核主键
     * @return 身份审核
     */
    @Override
    public TUserSfsq selectTUserSfsqById(String id)
    {
        return tUserSfsqMapper.selectTUserSfsqById(id);
    }

    /**
     * 查询身份审核列表
     *
     * @param tUserSfsq 身份审核
     * @return 身份审核
     */
    @Override
    public List<TUserSfsq> selectTUserSfsqList(TUserSfsq tUserSfsq)
    {
        return tUserSfsqMapper.selectTUserSfsqList(tUserSfsq);
    }

    /**
     * 新增身份审核
     *
     * @param tUserSfsq 身份审核
     * @return 结果
     */
    @Override
    public int insertTUserSfsq(TUserSfsq tUserSfsq)
    {
                tUserSfsq.setCreateTime(DateUtils.getNowDate());
            return tUserSfsqMapper.insertTUserSfsq(tUserSfsq);
    }

    /**
     * 修改身份审核
     *
     * @param tUserSfsq 身份审核
     * @return 结果
     */
    @Override
    public int updateTUserSfsq(TUserSfsq tUserSfsq)
    {
                tUserSfsq.setUpdateTime(DateUtils.getNowDate());
        return tUserSfsqMapper.updateTUserSfsq(tUserSfsq);
    }

    /**
     * 批量删除身份审核
     *
     * @param ids 需要删除的身份审核主键
     * @return 结果
     */
    @Override
    public int deleteTUserSfsqByIds(String[] ids)
    {
        return tUserSfsqMapper.deleteTUserSfsqByIds(ids);
    }

    /**
     * 删除身份审核信息
     *
     * @param id 身份审核主键
     * @return 结果
     */
    @Override
    public int deleteTUserSfsqById(String id)
    {
        return tUserSfsqMapper.deleteTUserSfsqById(id);
    }
}
